Definition at line 43 of file CWindowTools.hpp.
| static bool Exponent::GUI::Windowing::CWindowTools::computeCorrectedWindowArea | ( | const CDimension & | dimension, | |
| CDimension & | dimensionToFill, | |||
| unsigned long | style, | |||
| unsigned long | exStyle = -1, |
|||
| const bool | hasMenu = false | |||
| ) | [static] |
Compute the area actually required including extended styled border (if extended style is not required, simply set to -1, will convert
dimension to dimensionToFill, you should use dimensionToFill to create the window on mac simply copies the dimensions, as the sizing is done for you
| dimension | The dimension you want | |
| dimensionToFill | On return holds the new dimension | |
| style | The window style | |
| exStyle | The extended style | |
| hasMenu | Does the window have a menu |
| bool | True if filled properly, false otherwise |
| static long Exponent::GUI::Windowing::CWindowTools::computeLogicalSizeFromPointSize | ( | const long | pointSize | ) | [static] |
Compute the logical size from a point size. No equivalent for mac
| pointSize | The point size |
| long | The logical size |
| static bool Exponent::GUI::Windowing::CWindowTools::computeStringArea | ( | void * | drawContext, | |
| const CString & | string, | |||
| CDimension & | dimension, | |||
| void * | winFont = NULL | |||
| ) | [static] |
Compute the area that a string takes up
| drawContext | On windows an HDC, on mac should be a font | |
| string | The string to compute the size of | |
| dimension | On return contains the string dimension | |
| winFont | The windows font (HFONT), must be valid on windows, must be NULL on mac! |
| bool | True if computed properly, false on error |
| static bool Exponent::GUI::Windowing::CWindowTools::computeStringAreaNoGDIPlusStartup | ( | HDC | drawContext, | |
| const CString & | string, | |||
| CDimension & | dimension, | |||
| HFONT | font | |||
| ) | [static] |
Compute the string area, with no GDI+ startup routines.
| drawContext | The window HDC | |
| string | The string to size | |
| dimension | On output the size of the string | |
| font | The HFONT for the font used to display the string |
| static bool Exponent::GUI::Windowing::CWindowTools::getContentArea | ( | SWindowHandle * | windowHandle, | |
| CDimension & | dimension | |||
| ) | [static] |
Get the dimensions of the content area (the area you can draw in)
| windowHandle | Handle for the window | |
| dimension | On return is filled with window area |
| bool | True if filled properly, false otherwise |
| static void Exponent::GUI::Windowing::CWindowTools::getDesktopWindow | ( | SWindowHandle * | handle | ) | [static] |
Get the desktop window
| handle | On return points to the handle of the desktop window |
| static void Exponent::GUI::Windowing::CWindowTools::getForeGroundWindow | ( | SWindowHandle * | handle | ) | [static] |
Get the foreground window
| handle | On return points to the handle of the forground window |
| static bool Exponent::GUI::Windowing::CWindowTools::getGlobalContentAreaCoordinates | ( | SWindowHandle * | windowHandle, | |
| CRect & | areaToFill | |||
| ) | [static] |
Get the client area In screen coordinates
| windowHandle | The handle of the window | |
| areaToFill | On return contains the screen co-ordinates of the window handle |
| bool | True if filled properly, false otherwise |
| static void Exponent::GUI::Windowing::CWindowTools::getMousePosition | ( | CPoint & | point | ) | [static] |
Whats the mouse position
| point | On return is filled with the specified position |
| static bool Exponent::GUI::Windowing::CWindowTools::getWindowArea | ( | SWindowHandle * | windowHandle, | |
| CRect & | areaToFill | |||
| ) | [static] |
Get the window area
| windowHandle | Handle for the window | |
| areaToFill | On return contains the window area |
| bool | True if filled properly, false otherwise |
| static void Exponent::GUI::Windowing::CWindowTools::getWindowFromPoint | ( | SWindowHandle * | handle, | |
| const CPoint & | point | |||
| ) | [static] |
Get the window under a point
| handle | On return contains the window handle | |
| point | The position to find the window under |
| static bool Exponent::GUI::Windowing::CWindowTools::isWindowVisible | ( | SWindowHandle * | windowHandle | ) | [static] |
Is the window visible
| windowHandle | The window handle |
| bool | True if the window is visible, false otherwise |
| static void Exponent::GUI::Windowing::CWindowTools::setFocusWindow | ( | SWindowHandle * | windowHandle | ) | [static] |
Set the focus'd window
| windowHandle | The window handle to make focussed window |
| static void Exponent::GUI::Windowing::CWindowTools::setForeGroundWindow | ( | SWindowHandle * | windowHandle | ) | [static] |
Set the foreground window
| windowHandle | The window handle to make foreground |
| static void Exponent::GUI::Windowing::CWindowTools::setMousePosition | ( | const CPoint & | point | ) | [static] |
Set the cursor position
| point | The mouse position |